*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,body{
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #191919;
}
.main{
  width: 100%;
}
.search{
  display: grid;
  place-items: center;
  padding: 30px 0px;
}
.search input{
  width: 300px;
  padding: 15px 15px;
  font-size: 19px;
  color: gray;
  outline: none;
  border-radius: 30px;
}
input:focus{
  outline: 2px solid springgreen;
}
.movie-box{
  width: 100%;
  position: relative;
  display: flex;
  justify-content:center;
  align-items: center;
  gap: 34px;
  padding: 20px 20px;
  overflow: hidden;
  flex-wrap: wrap;

}
.movie-card{
  height: 390px;
  position: relative;
  width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
}
.movie-card img{
  height: 100%;
  width: 100%;
  transition: all ease-in-out 0.3s;
  object-fit: cover;
  object-position: center;
}
.movie-card img:hover{
  scale: 1.1;
}

.title-box{
  position: absolute;
  background-color: rgba(255, 255, 255, 0.418);
  height: 300px;
  border-radius: 15px;
  width: 400px;
  box-shadow: 2px 5px 2px black;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: none;
  padding: 0px 10px;
  bottom: -100%;
  transition: all 0.4s;
  overflow:auto ;
}
.movie-card:hover .title-box{
  bottom: 5px;
  display: block;
  transition: all 0.4s;
}
.title-box::-webkit-scrollbar{
  display: none;
}
.title-box .top-flex{
  display: flex;
  justify-content:space-between;
  padding: 10px 12px;
  align-items: center;
}
.top-flex p,span{
  font-size: 18px;
  font-weight: 500;
  color: white;
}

.title-box p{
  font-size: 18px;
  font-weight: 500;
  color: rgb(241, 238, 238);
  padding: 10px 12px;
}

@media only screen and (max-width:768px) {
      .title-box{
        width: 350px;
      }
}
@media only screen and (max-width:280px) {
      .title-box{
        width: 220px;
      }
      .search input{
        width: 250px;
      }
}


